import request from '@/utils/request'

// 查询园区列表
export function listPark(data) {
  return request({
    url: '/dormitory/dms-dormitory-park/list?pageNum='+ data.pageNum + '&pageSize=' + data.pageSize,
    method: 'POST',
    data
  })
}


// 新增园区
export function addPark(data) {
  return request({
    url: '/dormitory/dms-dormitory-park/add',
    method: 'post',
    data: data
  })
}

// 修改园区
export function updatePark(data) {
  return request({
    url: '/dormitory/dms-dormitory-park/update',
    method: 'post',
    data: data
  })
}

// 删除园区
export function delPark(id) {
  return request({
    url: '/dormitory/dms-dormitory-park/delete',
    method: 'post',
    data:id
  })
}

// 获取园区详细信息
export function getPark(id){
  return request({
    url:`/dormitory/dms-dormitory-park/${id}`,
    method:'get'
  })
}
